package sch.frog.behavioral.visitor;

public class VisitorB implements IVisitor {
    @Override
    public void visit(ConcreteElementA element) {
        System.out.println("visitor B do something for element A." + element.toString());
    }

    @Override
    public void visit(ConcreteElementB element) {
        System.out.println("visitor B do something for element B." + element.toString());
    }
}
